home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4839 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.0 KB

  1. From: KSIAS@msn.com (Ken Sias)
  2. Subject: Visual C++ and DLLs
  3. Date: 1 Feb 96 03:08:31 -0800
  4. Message-ID: <00001a81+00009795@msn.com>
  5. Path: news.msn.com!msn.com
  6. Newsgroups: comp.lang.c++
  7. Organization: The Microsoft Network (msn.com)
  8.  
  9. I have a question concerning Visual C++ and DLL....I am using Visual 
  10. C++ 4.0 and I create a new Project Workspace and select Application 
  11. DLL.  I create a resource - a dialog and then through the Class 
  12. Wizard create a class.  I then build the DLL.  Then I create a new 
  13. Project Workspace and select Application - Exe.  I then link the DLL 
  14. in the settings link and get an invalid file error - corrupt header.  
  15.  Then I link in the .OBJ file.  When I do this I get a conflict with 
  16. a resource ID I created in the application.  I would like to not have 
  17. to create unique ID for each resource if I want to use a library.  
  18. How is this supposed to be done?  Or is it not supposed to be done?  
  19. - the having of resources in a DLL file.
  20.  
  21. Also how come I am getting the error for invalid?
  22.  
  23. Ken Sias
  24. kcsias@msn.com
  25.